package com.zcxy.edu.service.impl;

import java.util.List;
import com.zcxy.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zcxy.edu.mapper.EduTeacherSmsLogMapper;
import com.zcxy.edu.domain.EduTeacherSmsLog;
import com.zcxy.edu.service.IEduTeacherSmsLogService;

/**
 * 老师短信发送记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-24
 */
@Service
public class EduTeacherSmsLogServiceImpl implements IEduTeacherSmsLogService 
{
    @Autowired
    private EduTeacherSmsLogMapper eduTeacherSmsLogMapper;

    /**
     * 查询老师短信发送记录
     * 
     * @param id 老师短信发送记录主键
     * @return 老师短信发送记录
     */
    @Override
    public EduTeacherSmsLog selectEduTeacherSmsLogById(Long id)
    {
        return eduTeacherSmsLogMapper.selectEduTeacherSmsLogById(id);
    }

    /**
     * 查询老师短信发送记录列表
     * 
     * @param eduTeacherSmsLog 老师短信发送记录
     * @return 老师短信发送记录
     */
    @Override
    public List<EduTeacherSmsLog> selectEduTeacherSmsLogList(EduTeacherSmsLog eduTeacherSmsLog)
    {
        return eduTeacherSmsLogMapper.selectEduTeacherSmsLogList(eduTeacherSmsLog);
    }

    /**
     * 新增老师短信发送记录
     * 
     * @param eduTeacherSmsLog 老师短信发送记录
     * @return 结果
     */
    @Override
    public int insertEduTeacherSmsLog(EduTeacherSmsLog eduTeacherSmsLog)
    {
        eduTeacherSmsLog.setCreateTime(DateUtils.getNowDate());
        return eduTeacherSmsLogMapper.insertEduTeacherSmsLog(eduTeacherSmsLog);
    }

    /**
     * 修改老师短信发送记录
     * 
     * @param eduTeacherSmsLog 老师短信发送记录
     * @return 结果
     */
    @Override
    public int updateEduTeacherSmsLog(EduTeacherSmsLog eduTeacherSmsLog)
    {
        eduTeacherSmsLog.setUpdateTime(DateUtils.getNowDate());
        return eduTeacherSmsLogMapper.updateEduTeacherSmsLog(eduTeacherSmsLog);
    }

    /**
     * 批量删除老师短信发送记录
     * 
     * @param ids 需要删除的老师短信发送记录主键
     * @return 结果
     */
    @Override
    public int deleteEduTeacherSmsLogByIds(Long[] ids)
    {
        return eduTeacherSmsLogMapper.deleteEduTeacherSmsLogByIds(ids);
    }

    /**
     * 删除老师短信发送记录信息
     * 
     * @param id 老师短信发送记录主键
     * @return 结果
     */
    @Override
    public int deleteEduTeacherSmsLogById(Long id)
    {
        return eduTeacherSmsLogMapper.deleteEduTeacherSmsLogById(id);
    }
}
